const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
   transpileDependencies: true,
   lintOnSave: false,
   chainWebpack: config => {
      config.module
         .rule('xlsx')
         .test(/\.xlsx$/)
         .use('file-loader')
         .loader('file-loader')
         .options({
            name: '[name].[ext]',
            outputPath: 'assets'
         });
   },
   devServer: {
      proxy: {
         "/api": {
            target: "http://localhost:9099",
            changeOrigin: true,
            pathRewrite: {
               '^/api': ''
            }
         }
      }
   }
})
